package com.geetour.columbus.admin.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.geetour.columbus.admin.bo.IAdminBO;
import com.geetour.columbus.admin.service.IAdminInnerService;
import com.geetour.columbus.common.model.A.Admin;

@Service
public class AdminInnerServiceImpl implements IAdminInnerService {

    private IAdminBO adminBOImpl;

    @Autowired
    public void setAdminBOImpl(IAdminBO adminBOImpl) {
        this.adminBOImpl = adminBOImpl;
    }

    @Override
    public Admin getAdminByName(String name) {
        if (name == null) {
            return null;
        }
        return adminBOImpl.getAdminByName(name);
    }

    @Override
    public int updateLoginTime(String uuid) {
        if (uuid == null) {
            return -1;
        }
        return adminBOImpl.updateModifyDate(uuid);
    }

}
